
import React from 'react'
import http from '../../../utils/http'
import AddGoodsTab from './components/addGoodsTab'
import './addGoods.less'

const AddGoods = (props) => {
  const {location, history, getDate} = props
  // console.log(location.search) // true为编辑组件 false为增加组件
  let isEdit = location.search.split('=')[1] === 'true' ? true : false
  console.log(isEdit)

  return (
    <div className="addGoods">
      <AddGoodsTab {...props} getDate={getDate} isEdit={isEdit}></AddGoodsTab>
    </div>
  )
}
export default AddGoods